import axios  from "../utils/http";

const PointsStore = {
    namespaced:true,
    state:()=>({
        points_list:[]
    }),
    mutations:{
       PointsMutations(state,list){
           state.points_list=list
       }
    },
    actions:{
      PointsActions(context){
          axios.get('/api/catelist?istree=1').then(res=>{
              if(res.code==200){
                  console.log(res);
                  context.commit('PointsMutations',res.list)
              }
          })
      }
    }
}

export default PointsStore